package com.cgtong.android.mvp.contract;

import com.cgtong.android.bean.MessageBean;
import com.cgtong.android.http.callback.BaseCallBack;
import com.zhouyou.http.callback.CallBackProxy;
import com.zhouyou.http.callback.SimpleCallBack;
import com.zhouyou.http.model.ApiResult;

import java.util.List;

/**
 * Created by Tinwai on 2017/10/24.
 */
public interface GetMessageContract {
    interface Model {
        void getUnreadMsg(SimpleCallBack<List<MessageBean>> callBack);
        void getMsgList(int type, SimpleCallBack<List<MessageBean>> callBack);
    }

    interface View {
        void setDatas(List<MessageBean> list);
        void setNullData();
    }

    interface Presenter {
        void getUnreadMsg();
        void getMsgList(int type);
    }
}
